package com.demo.autotest.database.mapper;

import com.demo.autotest.database.domain.Project;
import com.demo.autotest.database.domain.UserProject;
import com.demo.autotest.request.QueryRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper   // 定义Dao层
public interface ProjectMapper {

     void insertProject(Project project);

     void updateProject(Project project);

     void deleteProject(String id);

     void recoverProject(String id);

     void insertProjectUser(UserProject userProject);

     void deleteProjectUser(String projectId, String userId);

     List<Project> getProjectList(QueryRequest request);

     List<Project> getUserProjectList(String userId);

     Integer countProjectUser(String projectId, String userId);
}
